package com.github.chirspan.xaas.uc.dubbo.service;

import com.github.chirspan.xaas.bo.DepartmentBO;
import com.github.chirspan.xaas.dubbo.server.IRemoteDepartmentService;
import com.github.chirspan.xaas.uc.service.IOrgDepartmentService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * *******description*******
 * <p>
 * *************************
 *
 * @author chenpan
 * @date 2020/6/17 16:43
 */
@DubboService
public class RemoteDepartmentServiceImpl implements IRemoteDepartmentService {

    @Autowired
    private IOrgDepartmentService departmentService;

    @Override
    public List<DepartmentBO> getDepartmentByUsername(String username) {
        return departmentService.getDepartmentByUsername(username);
    }
}
